<template>
  <div id="app">
    <tabl>
      <tabl-item path="/home">
        <img slot="item-icon" src="./assets/img/rhome.svg" />
        <img slot="item-icon-active" src="./assets/img/rhome-active.svg" />
        <div slot="item-text">首页</div>
      </tabl-item>
      <tabl-item path="/tab">
        <img slot="item-icon" src="./assets/img/fenlei1.svg" />
        <img slot="item-icon-active" src="./assets/img/fenlei1-active.svg" />
        <div slot="item-text">分类</div>
      </tabl-item>
      <tabl-item path="/car">
        <img slot="item-icon" src="./assets/img/xiazai1.svg" />
        <img slot="item-icon-active" src="./assets/img/xiazai1-active.svg" />
        <div slot="item-text">购物车</div>
      </tabl-item>
      <tabl-item path="/my">
        <img slot="item-icon" src="./assets/img/wode.svg" />
        <img slot="item-icon-active" src="./assets/img/wode-active.svg" />
        <div slot="item-text">个人</div>
      </tabl-item>
    </tabl>
    <router-view></router-view>
  </div>
</template>

<script>
import Tabl from './components/Tabl';
import TablItem from './components/TablItem';

export default {
  name: 'App',
  components: {
    Tabl,
    TablItem
  }
}
</script>

<style lang="scss">
@import url('./assets/css/Base.css');

</style>
